package site.jlopen.service.intf.quartz;

import site.jlopen.entity.quartz.KusciaJobDataMap;

public interface QuartzService {
	
	boolean startKusciaJobListen(Long jobId, String jobName, KusciaJobDataMap dataMap);
	/**
     * 新增
     *
     * @param jobName
     * @param cron
     * @param jobClassName
     * @return
     */
    String addCronJob(String jobName, String cron, String jobClassName);

    /**
     * 停止
     *
     * @param jobName
     * @param jobGroup
     * @param triggerName
     * @param triggerGroup
     * @return
     */
    String deleteCronJob(String jobName, String jobGroup, String triggerName, String triggerGroup);

    /**
     * 立即执行，不定时
     *
     * @param jobName
     * @param jobClassName
     * @return
     */
    String executeImmediately(String jobName, String jobClassName);
}
